package org.qiyu.live.im.interfaces;

/**
 * @Description: //todo
 * @Author: 张广焱
 * @Date: 2023-12-03 19:28
 */
public interface ImTokenRpc {
    /**
     * @param appId
     * @Description: 创建用户登录im服务的token
     * @Param: @param userId
     * @Author: 张广焱
     * @Date: 2023-12-03  19:29:28
     */
    String createImLoginToken(long userId,int appId );

    /**
     * @Description: 根据token检索用户id
     * @Param: @param token
     * @Author: 张广焱
     * @Date: 2023-12-03  19:29:51
     */
    Long getUserIdByToken(String token);
}
